atftp: add patch to fix build error
authorFlorian Eckert <[email protected]>
Tue, 2 Sep 2025 12:11:08 +0000 (14:11 +0200)
committerFlorian Eckert <[email protected]>
Mon, 8 Sep 2025 07:20:43 +0000 (09:20 +0200)
commit8132457ddda0901a07d196295b4633f7713b0710
tree706856400e60adabcf43174c0586eff754955090
parent62dfcf026f923b23366854bd4724c8ff8fbb3d04
atftp: add patch to fix build error

This patch fixes the following compilation build error for gcc14:

tftpd_pcre.c:109:37: error: passing argument 1 of 'pcre2_substring_list_free_8' from incompatible p
  109 |           pcre2_substring_list_free((const PCRE2_UCHAR **)substrlist);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     const PCRE2_UCHAR8 ** {aka const unsigned char **}
In file included from tftpd_pcre.h:24,
                 from tftpd_pcre.c:35:

I have also submitted the change to the upstream project:
https://github.com/madmartin/atftp/pull/2

Signed-off-by: Florian Eckert <[email protected]>
net/atftp/patches/0001-Fix-incompatible-pointer-types-for-pcre2_substring_l.patch [new file with mode: 0644]